package entity

import (
	"beego/models"
)

type User2 struct {
	models.User
	LoginID string `json:"loginID"`
}

type LoginInfo struct {
	UserName string `json:"userName"`
	LoginID  string `json:"loginID"`
}

type PageQuery struct {
	LoginInfo
	CurPage string `json:"curPage"`
}

type Food struct {
	LoginInfo
	Name string `json:"name"`
}

type FoodDetailQuery struct {
	Food
	From int `json:"from"`
	Page int `json:"page"`
}

type FoodRecord struct {
	LoginInfo
	Date string                   `json:"date"`
	Type string                   `json:"type"`
	Food []map[string]interface{} `json:"food"`
}

type FoodRecordQuery struct {
	FoodRecord
	Date []string `json:"date"`
	Food string   `json:"food"`
	From int      `json:"from"`
	Page int      `json:"page"`
	Size int      `json:"size"`
}

type FoodRecordDel struct {
	LoginInfo
	Record []string `json:"record"`
}

type FoodRecordModify struct {
	LoginInfo
	Date []string                 `json:"date"`
	Type []string                 `json:"type"`
	Food []map[string]interface{} `json:"food"`
}

type Lunar struct {
	Year  int `json:"year"`
	Month int `json:"month"`
	Day   int `json:"day"`
}

type DateRemind struct {
	LoginInfo
	ID          string         `json:"id"`
	Calendar    string         `json:"calendar"`
	Lunar       map[string]int `json:"lunar"`
	Type        string         `json:"type"`
	Description string         `json:"description"`
	Front       int            `json:"front"`
	Back        int            `json:"back"`
	Frequency   string         `json:"frequency"`
}

type DateRemindDel struct {
	LoginInfo
	Record []string `json:"record"`
}

type PwdMap struct {
	LoginInfo
	PwdId string `json:"pwdId"`
	From  int    `json:"from"`
	Page  int    `json:"page"`
}
